arm: socfpga: board: Repair Micrel PHY tuning
authorPavel Machek <[email protected]>
Thu, 11 Dec 2014 17:06:31 +0000 (18:06 +0100)
committerMarek Vasut <[email protected]>
Tue, 16 Dec 2014 14:32:14 +0000 (15:32 +0100)
commit065496d1b5304a6a67b366b613c3504aab2e2dbd
tree08b5ddecbeef30db3b66db7546e5ddc533373cfc
parentb9b5cf0ea3c5c141f31cc0c4c8edebbfd9ff5866
arm: socfpga: board: Repair Micrel PHY tuning

Add proper error checking into the PHY tuning patch. Make the PHY tunning only
happen in case the KSZ9021 PHY is enabled in config. Call the config callback
after the tuning finished.

Signed-off-by: Marek Vasut <[email protected]>
Cc: Chin Liang See <[email protected]>
Cc: Dinh Nguyen <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Pavel Machek <[email protected]>
board/altera/socfpga/socfpga_cyclone5.c